﻿<%@ Page Title="" Language="C#" MasterPageFile="~/MainFrm.Master" AutoEventWireup="true" CodeBehind="CumAccountList.aspx.cs" Inherits="Ewts.Cumtomer.CumAccountList" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="EwtsConext" runat="server">
<h2>客户帐号列表</h2>
<br />
    <!--一个表单-->
    所在城市：
    <asp:DropDownList ID="dropGraphic" runat="server" 
        onselectedindexchanged="dropBelong_SelectedIndexChanged" AutoPostBack="true"  >
        <asp:ListItem Text="全国" Value="全国"></asp:ListItem>
        <asp:ListItem Text="上海总公司" Value="上海"></asp:ListItem>
        <asp:ListItem Text="北京分公司" Value="北京"></asp:ListItem>
        <asp:ListItem Text="广州分公司" Value="广州"></asp:ListItem>
        <asp:ListItem Text="苏州分公司" Value="苏州"></asp:ListItem>   
    </asp:DropDownList>
    
    &nbsp;&nbsp;&nbsp;&nbsp;
   <input id="hidUserLev" runat="server" type="hidden" class="hidUserLev" />
    &nbsp;&nbsp;&nbsp;&nbsp;
<div class="shadow2">
 
 
    <table id="tbUser" class="display" cellpadding="0" cellspacing="0" border="0" style="width:100%;">
 
      <thead>
 
        <tr>
 
            <th>序号</th>
 
            <th>客户编码</th>
 
            <th>客户名称</th>

            <th>操作</th>
            

        </tr>
 
      </thead>
 
      <tbody>
 
    <asp:Repeater ID="reptUser" runat="server" >
  <ItemTemplate>
 
    <tr>
        
      <td><%# Container.ItemIndex + 1%></td>
 
      <td><%# Eval("customercode")%></td>
       <td><%# Eval("companyname") %></td>
      <td>
      <a href='UserListByCumid.aspx?cumid=<%# Eval("cumid") %>'>帐号列表</a>&nbsp;&nbsp;&nbsp;
       <a href='CumAccounAdd.aspx?cumid=<%# Eval("cumid") %>'>新增</a>
       </a>

      </td>
 
    </tr>
 
  </ItemTemplate>
 
    </asp:Repeater>
  
    </tbody>
 
    </table>


</div>
    <script type="text/javascript">

        $(document).ready(function () {

            $('#tbUser').dataTable({ "oLanguage": { "sUrl": "/jquery/jquery.dataTable.cn.txt" },
                "bJQueryUI": true,
                "sPaginationType": "full_numbers",
                'bPaginate': true,
                "bProcessing": true,
                "iDisplayLength": 15,
                "bSort": true,
                "aaSorting": [[0, "asc"]]
            });

            if ($('.hidUserLev').val() != "AD") {
                $('.thLev').hide();
            }

        });
 
</script>
</asp:Content>
